package springboot.app.web;

import javax.annotation.Resource ;

import org.springframework.web.bind.annotation.GetMapping ;
import org.springframework.web.bind.annotation.PathVariable ;
import org.springframework.web.bind.annotation.RestController ;

import springboot.app.service.IUserService ;

/**
 * @author 80002165 @date 2017年7月1日 下午6:37:04
 */
@RestController
public class UserController {
    @Resource
    IUserService userService ;
    
    @GetMapping("/user/{id}")
    public Object getUser(@PathVariable("id")Integer id){
        return userService.selectUserById(id) ;
    }
    
}
